#include <string>

using namespace std;

class Vehicle
{
	public:	
		Vehicle(string pcustName = " ", string pModel = " ")
		{
			custName = pcustName;
			model = pModel;
		}
		virtual void display();
		virtual ~Vehicle() {};
	protected:
		string custName;
		string model;
};

class Car : public Vehicle
{
	public:
		Car(string pcustName = " ", string pModel = " ", short pmodelYear = 0):Vehicle(pcustName, pModel)
		{
			modelYear = pmodelYear;
		}
		virtual void display();
	protected:
		short modelYear;
};

class Truck : public Vehicle
{
	public:
		Truck(string pcustName = " ", string pModel = " ", short pWheels = 0):Vehicle(pcustName, pModel)
		{
			numWheels = pWheels;
		}
		virtual void display();
	protected:
		short numWheels;
};